package com.emep.changzhi.analyse.config;


import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RestController;

@Component//使用@Configuration也可以
@ConfigurationProperties(prefix = "smsutil")//前缀
@PropertySource(value = "classpath:smsutil.properties")//配置文件路径
@RestController
public class SmsConfig {

    @Value("${smsutil.username}")
    public String username;

    @Value("${smsutil.password}")
    public String password;

    @Value("${smsutil.productNum}")
    public String productNum;

}
